Skip to content

Make the Record.defrecord example match its documented output - #16077

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:docs/record-default-age-example
Nov 7, 2026
Merged

josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:docs/record-default-age-example

Conversation

@preciz

@preciz preciz commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

The Record.defrecord example defines the default age as the string "25", while the subsequent user() examples show the integer 25.

Use an integer default so the record definition matches the documented output.

Assisted-by: Codex CLI:GPT 6.1 Sol

@josevalim
josevalim merged commit cf1957c into elixir-lang:main Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants